package com.javafive;

import java.io.*;

public class Demo7 {
    public static void main(String[] args) throws Exception {
        String path="E:\\webWork\\javaKh62Demo\\src\\com\\javafive\\txt\\1.txt";
        InputStream inputStream=new FileInputStream(path);
        Reader reader = new FileReader(path);
        char[] chars = new char[inputStream.available()];
        StringBuilder stringBuilder = new StringBuilder();
        int count1=-1;
        while ((count1=reader.read(chars)) !=-1){
            stringBuilder.append(chars);
        }
        System.out.println(stringBuilder.toString());
        reader.close();
    }
}
